package mysql

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	GoodName string `gorm:"type:varchar(30);comment:商品名称"`
	Title    string `gorm:"type:varchar(30);comment:商品标题"`
	Image    string `gorm:"type:varchar(500);comment:商品图片"`
	ClassId  int    `gorm:"type:int(11);comment:分类Id"`
}

type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);comment:分类名称"`
}
